// Learn TypeScript:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html

import Character from "../../BASE/Character";
import GeZiManager from "../../Manager/GeZiManager";
import MessageCenter from "../../Message/MessageCenter";
import CXX from "./CXX";


const {ccclass, property} = cc._decorator;

@ccclass
export default class C10 extends CXX {
    target:Character=null;
    TheNumber:string = 'C10';

    Cname:string="滑轮"
    start () {
this.target=this.node.getComponent(Character);
this.target.t1.push(this);
this.target.t3.push(this)

    }

  remove(){
  
    GeZiManager.shanchu(this.target.t1,this)
    GeZiManager.shanchu(this.target.t3,this)
  }


T1(turn: number): void {
    this.target.turnBan[1]+=1
}



T3(): void {
   console.log(this.target.DiXing)

    if (this.target.LST!=-1&&this.target.DiXing!="water") {
        this.target.Walk(false);
    }
}
}
